import { urlParams } from "common";
import React = require("react");


// let bootbox = window['bootbox'];

class Site {
    constructor() {
    }
    style = {
        tableClassName: 'table table-striped table-bordered table-hover'
    }
    get userClientUrl() {
        let { protocol, host, pathname } = location;
        pathname = pathname.replace('admin', 'user');
        let url = `${protocol}//${host}${pathname}?appKey=${urlParams.appKey}#home_index`;
        return url;
    }
    storeUrl(stroeId: string) {
        let pageName: string = "home/index";
        console.assert(pageName != null);
        return `?appKey=${stroeId}#${pageName}`;
    }
    loadingElement = <div className="loading">
        <i className="icon-spinner icon-spin" style={{ marginRight: 4 }} />
        <span>数据正在加载中...</span>
    </div>
}








let site = new Site();
export default site; 